package cn.kgc.client;

import cn.kgc.entity.Product;
import com.github.pagehelper.PageInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "product-provider",fallback = ProClientFallback.class)
public interface ProClient {

    @GetMapping("/product/list")
    public PageInfo<Product> getProductList(@RequestParam(name = "productName") String productName,
                                            @RequestParam(name = "pageId") Integer pageId);

}
